Often in the shell script to block other processes, such as MSMTP mail queue script, this script mutex is not correct, the following is the three found in the file to achieve mutual exclusion of the correct approach.
1. The Flock of Util-linux
7.2 File Lock This is a file lock for Linux and the code is downloaded in the file lock code. File locking is a very important part of a multi-user, multitasking operating system.programs often need to share data, which is usually done through a
1. Background
When multiple processes may perform operations on the same data, these processes need to ensure that the other processes are not operating to prevent damage to the data. Typically, such a process uses a "lock file", which means that
Php background multi-user permission Group ideas and implementation program code. Website development requires the website background. if the background is used, users must be assigned the same role, especially in multi-user systems. for example, if
Web site development must have a website backstage, have the background naturally to the user has the same role to assign, especially the case of multi-user system, such as I a system to have more than one administrator, then I these management to
In order to regularly monitor the Linux system CPU, memory, load usage, wrote the Linux shell script, when it is worth it, send the mail notification regularly.
However, let Crond to periodically execute the script to send mail notification,
Adminconfig.php This is the configuration of all file permissions in the background system.
Fun.php This is a function function
left.php Web site background based on the user login ID to load the corresponding function menu
op.php calling
Website development requires the website background. if the background is used, users must be assigned the same role, especially in multi-user systems. For example, if one system requires multiple administrators, so I want to divide these management
Web site development must have a website backstage, have the background naturally to the user has the same role to assign, especially the case of multi-user system, such as I a system to have more than one administrator, then I these management to
Many times, we need to take into account the permissions of multiple users during the development process. in this article, you can refer to adminconfig. php, which is the configuration of all file permissions in the background system.
Fun. php this
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.